package com.pengheng.controller;

import com.pengheng.service.HelloService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @remark
 * @Author pengheng
 * @date 2021/5/31 17:51
 */
@RestController
@RequestMapping(("/demo"))
public class HelloController {

    @Reference
    private HelloService helloService;

    @RequestMapping("/hello")
    public String sayHello() {
        return helloService.sayHello();
    }
}
